﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using Microsoft.Practices.ObjectBuilder2;

namespace FishServe.Core
{
    [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
    public class InjectChildContainerAttribute : DependencyResolutionAttribute
    {
        public override IDependencyResolverPolicy CreateResolver(Type typeToResolve)
        {
            return new InjectChildContainerResolver(typeToResolve);
        }
    }
}
